﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using SGTD.Entidades;
using SGTD.DAO;

namespace SGTD.COM
{
    public class clsGestorCorreo
    {
        public List<clsCorreo> ListarCorreo()
        {
            List<clsCorreo> ListaCorreo = new List<clsCorreo>();
            clsCorreoDAO objCorreoDAO = new clsCorreoDAO();
            ListaCorreo = objCorreoDAO.listarCorreo();
            return ListaCorreo;
        }

        public Boolean registrarCorreo(clsCorreo c)
        {
            clsCorreoDAO dao = new clsCorreoDAO();
            return dao.RegistrarCorreo(c);
        }
    }
}